<?php

namespace app\model;

use think\Db;

class MessageClient extends Common
{
    protected static $obj;

    public function _initialize()
    {
        parent::_initialize();
        $this->db_name = 'message_client';
    }

    /**
     * 类入口
     * @return MessageClient
     */
    public static function getInstance()
    {
        if (is_null(self::$obj))
            self::$obj = new self();
        return self::$obj;
    }

    /**
     * @param $arr_data
     * @return int|string
     */
    public function toAddAll($arr_data)
    {
        return Db::name($this->db_name)->insertAll($arr_data);
    }
}
